using Engine;
using Game;

namespace RuthlessConquest {
    public class GameWidget : CanvasWidget {
        public Client Client { get; set; }

        public GameWidget() {
            IsDrawRequired = true;
            Size = new Vector2(float.PositiveInfinity, float.PositiveInfinity);
        }

        public override void Update() {
            Client?.Update();
        }

        public override void Draw(DrawContext dc) {
            Client?.Draw(GlobalColorTransform);
        }
    }
}